import threading, time
from threading import Thread


def create_thread():

    for i in range(4):
        time.sleep(1)
        print(f'--当前线程名称{threading.current_thread().name}, {i}')

if __name__ == '__main__':
    print('parent start....')
    start = time.time()
    lst = []
    for i in range(2):
        t = Thread(target=create_thread)
        lst.append(t)
    for t in lst:
        t.start()
    for t in lst:
        t.join()
    print('parent end....')
    print(time.time() - start)
